<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>成都商报</title>
    <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.5.0/slick/slick.css">
<link href="app.74aacff2.css" rel="stylesheet"></head>
<body>
    <div id="app"></div>
    <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript" src="//cdn.bootcss.com/jquery/1.12.2/jquery.min.js"></script>
    <script type="text/javascript" src="//www.cdsb.com/Public/www/js/slick.min.js"></script>
<script type="text/javascript">
$(function(){
    var shareTitle = '成都商报'; // 分享标题
    var shareDesc = '成都商报'; // 分享描述
    var shareLink = 'https://azfzjkp.cdsb.com/public/index/index.html'; // 分享链接
    var shareImg  = 'https://static.cdsb.com/appstatic/articles/ziyuan/images/app_icon_logo.png'; // 分享图标
    $.ajax({
        url: "https://app.cdsb.com/cdsb_wxactivity/index.php/Index/index/getSignPackageByApi",
        data: {url: shareLink},
        dataType: "json",
        success: function(data){
            // alert(data.url);
            // 微信配置
            try{

                wx.config({
                    debug: false,
                    appId: data.appId,
                    timestamp: data.timestamp,
                    nonceStr: data.nonceStr,
                    signature: data.signature,
                    jsApiList: ['hideOptionMenu','onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ']
            });

            } catch(e) {

            }
        }
    });

    try{
        // 微信ready
        wx.ready(function(){
            // 分享到朋友圈
            wx.onMenuShareTimeline({
              title: shareTitle, // 分享标题
              link: shareLink, // 分享链接
              imgUrl: shareImg,  // 分享图标
              success:function(){

              }
            });

            // 分享给朋友
            wx.onMenuShareAppMessage({
              title:shareTitle, // 分享标题
              desc:shareDesc, // 分享描述
              link: shareLink, // 分享链接
              imgUrl: shareImg , // 分享图标
              type: '', // 分享类型,music、video或link，不填默认为link
              dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
              success:function(){

              }
            });

            // 分享到QQ
            wx.onMenuShareQQ({
              title: shareTitle, // 分享标题
              desc: shareDesc, // 分享描述
              link: shareLink, // 分享链接
              imgUrl: shareImg, // 分享图标
              success:function(){
              }
            });
        });
    } catch(e) {

    }
})
</script>
<script type="text/javascript" src="app.5b0f9408.js"></script><script type="text/javascript" src="vendor.6cd3da8e.js"></script></body>
</html>